import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'

Vue.use(ElementUI);
Vue.config.productionTip = false
export default{
  axios,
}
//设置基地址
let fetch=axios.create({
  baseURL:process.env.VUE_APP_URL,
  withCredentials:true
})
Vue.prototype.$axios=fetch

import router from '@/router/index.js'
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
